<?php
	if(isset($_POST['show'])) {
		require_once('../inc/fnc.php');
		/* require_once('../inc/conn.php'); */
		require_once('../inc/settings.php');
	}
	
	$name = getName($_SESSION['userId']);	
?>
<div class="pLinkWrap">
    <a href="index.php?page=<?php echo strtolower($name); ?>" class="right profileLink mainNav <?php if($pageType == 'profile' && $id == $_SESSION['userId']) { echo 'topCurrent'; }?>">
        <div class="avatarThumb left"><img src="<?php echo userimage($_SESSION['userId'],'small'); ?>" class="avatar"/></div>
        <div class="name left"><?php echo strtolower($name); ?></div>
    </a>
</div>
<div id="showSettings" class='userInfo show'><span class="gbma"></span></div>
<div class="clear"></div>
<ul id="settingsWrap" class="showWrap settingsMenu hide">
    <li><a id="editPwd" class="userLink" href="index.php?page=settings">Edit Profile</a></li>
    <li><a id="logout" class="userLink" href="<?php echo DOMAIN; ?>/proc/logout.php">Logout</a></li>
</ul>